#ifndef VDBLOGIN_H
#define VDBLOGIN_H

#include <QDialog>
#include "ui_vdblogin.h"

class VDBLogin : public QDialog
{
	Q_OBJECT

public:
	VDBLogin(QWidget *parent = 0);
	~VDBLogin();

public:
	bool isConnected() const;
	
	QString host() const;
	void setHost(const QString& host);
	
	QString database() const;
	void setDatabase(const QString& db);
	
	QString user() const;
	void setUser(const QString& user);
	
	QString password() const;
	void setPassword(const QString& password);

	QStringList connectionString() const;
	void setConnectionString(const QStringList& conStr);

private slots:
	void connectToDataBase();
	void slotCancel();

private:
	Ui::VDBLoginClass ui;
};

#endif // VDBLOGIN_H
